#include "db.hpp"

DB::DB(int key){
    m_Key = key;
    driver = sql::mysql::get_mysql_driver_instance();
    con = driver->connect("tcp://127.0.0.1:3306", "user", "password");
}

DB::~DB()
{
    delete con;
}

bool User_DB::CreateUser(string login, string password, string name, string secod_name)
{

}

bool User_DB::DeleteUser(string login)
{

}
User_DB::UserInfoMap User_DB::GetUser(string login)
{

}

User_DB::RightsList User_DB::GetRights(string login)
{

}

bool User_DB::UpdateUser(string login, UserInfoMap user_info)
{

}

bool User_DB::UpdateRights(string login, RightsList rights)
{

}

